home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EuroCD 3
/
EuroCD 3.iso
/
Programming
/
Amos
/
AMOSList-0497
/
AMOSLIST
/
000166_amos-request@svcs1.digex.net_Sun Apr 20 06:45:51 1997.msg
< prev
next >
Wrap
Text File
|
1998-06-24
|
3KB
|
65 lines
Received: from svcs1.digex.net (svcs1.digex.net [204.91.197.224])
by mail1.access.digex.net (8.8.5/8.8.5) with ESMTP id GAA10997
for <mcox@access.digex.net>; Sun, 20 Apr 1997 06:45:49 -0400 (EDT)
Received: (from daemon@localhost)
by svcs1.digex.net (8.8.5/8.8.5) id FAA02341
for amos-out; Sun, 20 Apr 1997 05:00:10 -0400 (EDT)
Received: from mail2.access.digex.net (mail2.access.digex.net [205.197.247.3])
by svcs1.digex.net (8.8.5/8.8.5) with ESMTP id FAA02338
for <amos-list@svcs1.digex.net>; Sun, 20 Apr 1997 05:00:09 -0400 (EDT)
Received: from relay-7.mail.demon.net (relay-7.mail.demon.net [194.217.242.9])
by mail2.access.digex.net (8.8.5/8.8.5) with SMTP id FAA13240
for <amos-list@access.digex.net>; Sun, 20 Apr 1997 05:00:04 -0400 (EDT)
Received: from stevewil.demon.co.uk ([158.152.226.72]) by relay-5.mail.demon.net
id aa0516521; 20 Apr 97 9:55 BST
Date: 20 Apr 97 09:52:11 +0000
From: Stephen W Williams <stevewil@stevewil.demon.co.uk>
Subject: Printing to file
To: amos-list@access.digex.net
Message-ID: <1597.7049T592T551@stevewil.demon.co.uk>
MIME-Version: 1.0
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7bit
X-Mailer: THOR 2.4 (Amiga;TCP/IP)
Status: RO
X-Status:
To All
Can someone help me with a small but irritating problem I am having
with a little prog I am trying to get working.
What I want to do is use AmosPro to create a file in Ram called Datapath
and then execute it with Amiga dos.
If you look at the example below it should create a file called Datapath
containing "CD workbench:data".
Now the hard part, the file should change the current directory to
workbench:data (which does exist on my system).
But What I get is "object not found CD failed returncode 20",
I think I have found why it doesn't run because there seems to be extra
characters at the end of the file, I.e. the example below should create a file
18 characters long including Return
But the actual file is 20 long and its these extra characters that cause the
problem, If I load the file into a Text Editor and delete the invisible
characters at the end and resave the file it runs fine.
So the Question how do I create a file without the extra characters?
I have tryed CHR$(13)/CHR$(10) After A$ but no luck.
And I can remove any extra characters easily inside Amos.
a$="workbench:data"
C$="CD "
A$=C$+A$
Open Out 3,"Ram:Datapath"
Print #3,A$
Print #3,Chr$(13)
Close 3
Any help would be appreciated
Thanks Steve.
end
--
======== Stephen W Williams - stevewil@stevewil.demon.co.uk ========
*AMIGA A1200 HD 2+24mb Ram - Blizzard 1230IV with SCSI - Ext Floppy*
* Microvitec GPM1701 17" Monitor - SupraFAXmodem288 - SurfSquirrel *
* HiQ PowerStation-80+720Mb Quantum SCSI HDs ZIP Drive with AFS *
* X2 CD Rom - HP DeskJet 693C - Power Mono Hand Scanner *
--